package com.mac.intellect_flow.sys.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mac.intellect_flow.reply.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 *流程定义查询
 *
 * @author mac
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "流程定义查询")
public class FlowDefQueryDto extends PageParam {

    private static final long serialVersionUID = 2952737611591871450L;

    @Schema(description ="流程名称")
    private String name;

    @Schema(description ="流程key")
    private String flowKey;

    @Schema(description ="流程分类")
    private String category;

    @Schema(description ="流程定义状态: 1:激活 , 2:中止")
    private Integer suspensionState;

    @Schema(description ="部署时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date deploymentTime;


}
